package com.ruoyi.order.controller;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.R;
import com.ruoyi.order.domain.SerAppointment;
import com.ruoyi.order.service.ISerAppointmentService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 订单Controller
 *
 * @author ruoyi
 * @date 2025-07-12
 */
@Tag(name = "订单")
@RestController
@RequestMapping("/order/appointment")
public class SerAppointmentController extends BaseController {

    @Autowired
    private ISerAppointmentService serAppointmentService;

    @Operation(summary = "详情")
    @PostMapping("/getInfo/{id}")
    public R<SerAppointment> chatList(@PathVariable("id")Long id) {
        return R.ok(serAppointmentService.getById(id));
    }
}
